@import "../../default/css/style.scss";
@import "../../../../../../src/www/themes/common/css/utils/colors";
@import "../../../../../../src/www/themes/FlamingParrot/css/utils/badge-colors";

@mixin definitions($main) {
    .agiledashboard-admin-kanban .agiledashboard-admin-section section .plannings > thead > tr > th {
        border-bottom-color: $main;
    }

    div.milestones > fieldset.milestone {
        legend {
            border-bottom-color: $main;
            color: $main;

            > span.status {
                &.open {
                    background-color: $main;
                }
            }
        }

        &.collapsed {
            legend {
                border-bottom-color: #E9E9E9;
            }
        }
    }

    #planning-app {
        li.backlog-item .backlog-item-details .moves > .icon-stack:hover > .icon-stack-base {
            color: $main;
        }

        #backlog-items-selected-bar .label {
            background: $main;
        }

        li.backlog-item.gu-transit {
            background: $main;
        }
    }

    .tuleap-artifact-modal {
        .followups-title {
            color: $main;
        }

        .modal-body fieldset > legend {
            border-bottom-color: $main;
            color: $main;
        }
    }

    #details .table > tbody > tr:hover > td.agiledashboard-milestone-details-items-list-is-closed {
        background: transparentize($main, .93);
    }
}

body {
    &.FlamingParrot_Orange {
        @import "variables-orange";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-orange.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_Blue {
        @import "variables-blue";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-blue.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_Green {
        @import "variables-green";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-green.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_BlueGrey {
        @import "variables-bluegrey";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-bluegrey.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_Purple {
        @import "variables-purple";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-purple.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_Red {
        @import "variables-red";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-red.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_DarkOrange {
        @import "variables-darkorange";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-dark-orange.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_DarkBlue {
        @import "variables-darkblue";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-blue.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_DarkGreen {
        @import "variables-darkgreen";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-green.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_DarkBlueGrey {
        @import "variables-darkbluegrey";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-bluegrey.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_DarkPurple {
        @import "variables-darkpurple";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-purple.png') no-repeat center 20px;
        }
    }

    &.FlamingParrot_DarkRed {
        @import "variables-darkred";

        @include definitions($main);
        .empty-home {
            background: transparent url('../images/agile-dashboard-not-configured-red.png') no-repeat center 20px;
        }
    }
}
